+Tue Oct 21 22:07:12 2003 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
+ ctrl_pressed and shift_pressed according to the current event
+ state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
+
Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): remove the completion
+Tue Oct 21 22:07:12 2003 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
+ ctrl_pressed and shift_pressed according to the current event
+ state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
+
Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): remove the completion
+Tue Oct 21 22:07:12 2003 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
+ ctrl_pressed and shift_pressed according to the current event
+ state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
+
Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): remove the completion
+Tue Oct 21 22:07:12 2003 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
+ ctrl_pressed and shift_pressed according to the current event
+ state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
+
Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): remove the completion
+Tue Oct 21 22:07:12 2003 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
+ ctrl_pressed and shift_pressed according to the current event
+ state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
+
Mon Oct 20 23:24:27 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtkentry.c (gtk_entry_key_press): remove the completion
GtkMovementStep step,
gint count)
{
+ GdkModifierType state;
+
g_return_val_if_fail (GTK_IS_TREE_VIEW (tree_view), FALSE);
g_return_val_if_fail (step == GTK_MOVEMENT_LOGICAL_POSITIONS ||
step == GTK_MOVEMENT_VISUAL_POSITIONS ||
GTK_TREE_VIEW_SET_FLAG (tree_view, GTK_TREE_VIEW_DRAW_KEYFOCUS);
gtk_widget_grab_focus (GTK_WIDGET (tree_view));
+ if (gtk_get_current_event_state (&state))
+ {
+ if ((state & GDK_CONTROL_MASK) == GDK_CONTROL_MASK)
+ tree_view->priv->ctrl_pressed = TRUE;
+ if ((state & GDK_SHIFT_MASK) == GDK_SHIFT_MASK)
+ tree_view->priv->shift_pressed = TRUE;
+ }
+ /* else we assume not pressed */
+
switch (step)
{
/* currently we make no distinction. When we go bi-di, we need to */
g_assert_not_reached ();
}
+ tree_view->priv->ctrl_pressed = FALSE;
+ tree_view->priv->shift_pressed = FALSE;
+
return TRUE;
}